package com.shen.GOF.prototype;

import java.util.Date;

public class Client {
    public static void main(String[] args) throws CloneNotSupportedException {

        //原型
        Video video = new Video("bin", new Date());
        System.out.println("v1 " + video);
        System.out.println("hash " + video.hashCode());
        //克隆
        Video clone = (Video) video.clone();
        System.out.println("v2 " + clone);
        System.out.println("hash " + clone.hashCode());


    }
}
